
const getHtml = (title: string = '文件传输助手', scripts: string[] = ['/client/App.js']) => {
    const scriptTags = scripts.map(script => `<script type="module" src="${script}"></script>`).join('\n');
    return `
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>${title}</title>
        <link rel="icon" href="/favicon.ico">
        <link rel="stylesheet" href="/client/App.css">
    </head>
    <body style="margin: 0;">
        <div id="root"></div>
        ${scriptTags}
    </body>
    </html>
    `
}

export default getHtml;